package com.lanhe.pckageManage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lanhe.pckageManage.domain.LhPackageManage;

import java.util.List;

/**
 * 包管理(LhPackageManage)表服务接口
 *
 * @author zhanggl
 * @since 2023-12-02 22:51:14
 */
public interface ILhPackageManageService extends IService<LhPackageManage> {

	/**
	 * 分页查询所有数据
	 *
	 * @param packageManage 实体
	 * @return 安装包集合信息
	 */
	List<LhPackageManage> selectIdentifierBindList(LhPackageManage packageManage);

	/**
	 * 新增包信息
	 *
	 * @param packageManage 实体
	 * @return 结果
	 */
	int insertPackageManage(LhPackageManage packageManage);

	/**
	 * 修改包信息
	 *
	 * @param packageManage 实体
	 * @return 结果
	 */
	int updatePackageManage(LhPackageManage packageManage);

	/**
	 * 查询信息
	 *
	 * @param packageId 包ID
	 * @return 结果
	 */
	LhPackageManage selectPackageManageById(Long packageId);

	/**
	 *  删除
	 *
	 * @param packageId 包ID
	 * @return int
	 * @author zhanggl
	 * @date 2023/12/4
	 */
	int deletePackageManageById(Long packageId);

	/**
	 * 获取厂商
	 *
	 * @return java.util.List<com.lanhe.pckageManage.domain.LhPackageManage>
	 * @author zhanggl
	 * @date 2023/12/11
	 */
	List<LhPackageManage> getManufacturer();

	/**
	 * 更新下载次数
	 *
	 * @param packageId 包ID
	 * @return int
	 * @author zhanggl
	 * @date 2023/12/11
	 */
	int updateDownloadNumber(Long packageId);
}

